package cn.jsj.hzu.qm.facecloud.user.pojo;

import java.util.Objects;

public class App {

	int id;
	int user_id;
	private String app_name;
	private String app_info;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public String getApp_name() {
		return app_name;
	}

	public void setApp_name(String app_name) {
		this.app_name = app_name;
	}

	public String getApp_info() {
		return app_info;
	}

	public void setApp_info(String app_info) {
		this.app_info = app_info;
	}

	public App(int id, int user_id, String app_name, String app_info) {
		super();
		this.id = id;
		this.user_id = user_id;
		this.app_name = app_name;
		this.app_info = app_info;
	}

	public App() {
		super();
	}

	@Override
	public String toString() {
		return "App [id=" + id + ", user_id=" + user_id + ", app_name=" + app_name + ", app_info=" + app_info + "]";
	}

	@Override
	public int hashCode() {
		return Objects.hash(app_info, app_name, id, user_id);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		App other = (App) obj;
		return Objects.equals(app_info, other.app_info) && Objects.equals(app_name, other.app_name) && id == other.id
				&& user_id == other.user_id;
	}

}
